package com.github.wxiaoqi.security.admin.mapper;

import java.util.List;

import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.mapper.BaseMapper;

import com.github.wxiaoqi.security.admin.entity.Element;

public interface ElementMapper extends BaseMapper<Element> {
    List<Element> selectAuthorityElementByUserId(@Param("userId")String userId);
    List<Element> selectAuthorityMenuElementByUserId(@Param("userId")String userId,@Param("menuId")String menuId);
    List<Element> selectAuthorityElementByClientId(@Param("clientId")String clientId);
    List<Element> selectAllElementPermissions();
}